<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>user detail</title>

    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container">
    <h1 th:text="${user.email}+个人信息" class="text-center"></h1>
    <div class="row">
        <div class="col-xs-3 col-xs-offset-1">
            <img th:src="${user.image}" class="img-rounded">
        </div>
        <div class="col-xs-6">
            <table class="table table-condensed table-hover table-striped">
                <tr>
                    <td>用户名</td>
                    <td th:text="${user.userName}"></td>
                </tr>
                <tr>
                    <td>邮箱</td>
                    <td th:text="${user.email}"></td>
                </tr>
                <tr>
                    <td>手机</td>
                    <td th:text="${user.phone!=null?user.phone : '未设置'}"></td>
                </tr>
                <tr>
                    <td>积分</td>
                    <td th:text="${user.score}"></td>
                </tr>
            </table>
        </div>
    </div>
</div>

</body>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</html>